package com.campus.mapper;

import com.campus.pojo.entity.ShopDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ShopDishMapper {


    /**
     * 根据店铺ID查询店铺菜品列表
     * @param shopId
     * @return
     */

    @Select("select * from shop_dish where shop_id=#{shopId}")
    List<ShopDish> getDishList(Long shopId);

    void insertBatch(List<ShopDish> dishList);

    /**
     * 根据店铺ID删除店铺菜品列表  单个删除和批量删除通用 所以用集合接收
     * @param shopIds 店铺ID集合
     */

    void deleteByShopIds(List<Long> shopIds);
}
